﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AutoPartsSearch.Web.Infrastructure.Cache;

namespace AutoPartsSearch.Web.Areas.Administration.Controllers
{
    public class CacheController : Controller
    {
        //
        // GET: /Administration/Cache/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Reset()
        {
            CacheHelper.ResetCache();
            return RedirectToAction("Index", "Home");
        }
    }
}
